package com.hc.springbootschedule.jdk.thread;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ThreadTest {
    public static void init() {
        new Thread(() -> {
            while (true) {
                try {
                    System.out.println("doSameThing");
                    Thread.sleep(1000 * 60 * 5);
                } catch (Exception e) {
                    log.error(e.getMessage());
                }
            }
        }).start();
    }
    public static void main(String[] args) {
        init();
    }
}
